//this file is the config file and the struct core_conf is for init in core
#ifndef CORE_CONF_H
#define CORE_CONF_H

#include<pcap.h>
#include<stdio.h>
#include"node_conf.h"
#include<stdlib.h>
#include"log.h"

struct core_conf
{
	char *core_conf_file;
	int pcap_mode;
	char *pcap_file;
	char *pcap_interface;
	pcap_t *pcap_handle;
	int pcap_datalink_type;


	unsigned long max_id;
	unsigned int mode;
	
	int usleep_time;

	int use_mm;
	unsigned long mm_limit;

	int use_mail;
	char *to;
	
	struct node_conf Node;
	
};
extern void core_conf_from_file(struct core_conf *Core_conf,char * file_name);

extern void core_conf_init_node(struct core_conf *Core_conf,char * file_name);


#endif
